package com.example.aop.aspectJ;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.Ordered;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class ForumLoggerAspect implements Ordered{

	// pointcut
	@Before("execution(* com.example.aop.common.*Impl.*(..))")
	public void before() {
		System.out.println("=======保存更新日志=========");
	}

	@Override
	public int getOrder() {
		// TODO Auto-generated method stub
		return 1;
	}
}
